﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;

namespace SelfMonitor
{
    public partial class FAddTasks : Form
    {
        string ProjectPath { get; set; }
        public FAddTasks(String PP)
        {
            InitializeComponent();
            ProjectPath = PP;
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void FAddTasks_Load(object sender, EventArgs e)
        {

        }

        private void label4_Click(object sender, EventArgs e)
        {

        }

        private void button7_Click(object sender, EventArgs e)
        {
           // XmlDocument xd = new XmlDocument();
            //xd.Load(ProjectPath);
            //XmlNode node = xd.SelectSingleNode("Project");

            ListViewItem lvi = new ListViewItem();

            ListViewItem[] p = new ListViewItem[2];
            p[0] = new ListViewItem(new string[] { "", "aaaa", "bbbb" });
            p[1] = new ListViewItem(new string[] { "", "cccc", "ggggg" });
            p[0].SubItems[0].BackColor = Color.Black; //用于设置某行的背景颜色

            listView1.Items.AddRange(p);
        }
    }
}
